<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'a.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
	<h1>Struts2 标签</h1>
	<s:iterator value="#list">
		<s:property/><br>
	</s:iterator>
	<hr>
	<s:iterator value="#list" var="name">
		<s:property value="#name"/><br>
	</s:iterator>
	<hr>
	<s:iterator begin="1" end="10" step="1">
		<s:property/>|
	</s:iterator>
	<hr>
	<s:if test="#list.size()==4">
		list.size()=4
	</s:if>
	<s:elseif test="#list.size()==3">
		list.size()=3
	</s:elseif>
	<s:else>
		list.size()不3不4
	</s:else>
	<hr>
	<s:property value="#list.size()"/><br>
	<s:property value="#session.user.name"/>
  </body>
</html>
